package org.bees.cms.core.clause;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

import org.bees.cms.core.Describable;
import org.bees.cms.core.Domain;
import org.bees.cms.core.Named;

@MappedSuperclass
public abstract class Clause extends Domain implements Named, Describable, Generator {
	private static final long serialVersionUID = 3531101859980399957L;

	private String name;
	private String mapper;
	private String description;

	@Column(length = 24, nullable = false)
	@Override
	public String getName() {
		return name;
	}

	@Override
	public void setName(String name) {
		this.name = name;
	}

	@Column(length = 24, nullable = false)
	public String getMapper() {
		return mapper;
	}

	public void setMapper(String mapper) {
		this.mapper = mapper;
	}

	@Column(length = 200)
	@Override
	public String getDescription() {
		return description;
	}

	@Override
	public void setDescription(String description) {
		this.description = description;
	}

}
